<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>d3-demos</title>
</head>
<script src="https://unpkg.com/d3@4.10.0"></script>
<body>
  <div>
    <h3>d3-demos</h3>
    <svg id="svg"></svg>



  </div>



  <script>
   var dataSet = [10,30,43,55,15];
   var pie = d3.layout.pie();
   var piedata = pie(dataSet);

   var svg = d3.select('#svg');

   svg.selectAll("g").data(piedata).enter().append('g').attr('transform',"translate("+(width))






  </script>
</body>
</html>